import {ExtractPropTypes, PropType} from "vue";

export const pageProps = {
    size: {
        type: Number,
        default: 10,
        required: true
    },
    current: {
        type: Number,
        default: 1,
        required: true
    },
    total: {
        type: Number,
        default: 0,
        required: true
    },
    pageSizes: {
        type: Array as PropType<number[]>,
        default: [10, 20, 50, 100]
    },
    layout:{
        type: String,
        default: "total, sizes, prev, pager, next, jumper"
    },
    otherAttr:{
        type: Object,
        default: {}
    }
}

export type PageProps = ExtractPropTypes<typeof pageProps>;